using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.Task.Data;
using CentralOffice.Task.DataAccess;
using ReviewTable = CentralOffice.Task.Data.TaskReviewDataSet.TaskReviewDataTable;
using ReviewRow = CentralOffice.Task.Data.TaskReviewDataSet.TaskReviewRow;
using HistoryTable = CentralOffice.Task.Data.TaskHistoryDataSet.TaskHistoryDataTable;
using HistoryRow = CentralOffice.Task.Data.TaskHistoryDataSet.TaskHistoryRow;

namespace CentralOffice.Task.BusinessActions
{
    public class TaskReview : DataAccessManager<TaskReviewDataSet, ReviewTable, ReviewRow, TaskReviewAdapter>
    {
        public static bool Update(TaskReviewDataSet reviewDataSet, TaskHistoryDataSet historyDataSet)
        {
            return UpdateSelfAndDetail<TaskHistoryAdapter, TaskHistoryDataSet, HistoryTable, HistoryRow>(reviewDataSet, historyDataSet, true, false, null);
        }

        //public static bool Update(TaskDataSet taskDataSet, TaskHistoryDataSet historyDataSet)
        //{
        //    return UpdateSelfAndDetail<TaskHistoryAdapter, TaskHistoryDataSet, HistoryTable, HistoryRow>(taskDataSet, historyDataSet, true, false, null);
        //}
    }
}
